<template>
  <view>
    <template v-if="secondindex == 0">
      <Index></Index>
    </template>
    <template v-if="secondindex == 1">
      <BookTeacher></BookTeacher>
    </template>
    <template v-if="secondindex == 2">
      <TeacherHome></TeacherHome>
    </template>
  </view>
</template>

<script>
import Index from '@/components/teacher/index/index.vue';
import BookTeacher from '@/components/teacher/book_teacher/bookTeacher.vue';
import TeacherHome from '@/components/teacher/teacher_home/teacherHome.vue';
export default {
  components: {
    Index,
    BookTeacher,
    TeacherHome
  },
  props: {
    secondindex: Number
  },
  data() {
    return {
      current: 0
    };
  },
  methods: {}
};
</script>

<style lang="scss" scoped></style>
